﻿@using lsc.Model.Enume
@using lsc.Model
@model List<EnterCustPhaseLog>
@{
    ViewData["Title"] = "PhoneTotalList";
    Layout = "~/Pages/_LayoutNone.cshtml";
    List<EnterCustomer> enlist = ViewBag.enlist;
}

<table class="layui-table">
    <thead class="layui-table-header">
        <tr>
            <th>客户名称</th>
            <th>客户阶段</th>
            <th>联系内容</th>
            <th>联系时间</th>
        </tr>
    </thead>
    <tbody class="layui-table-body">
        @if (Model != null)
        {
            foreach (var info in Model)
            {
                string name = string.Empty;
                if (enlist!=null)
                {
                    var en = enlist.FirstOrDefault(x=>x.ID==info.EnterCustomerID);
                    if (en!=null)
                    {
                        name = en.EnterName;
                     }
                }
                <tr>
                    <td>@name</td>
                    <td>@info.Phase.TryToStr()</td>
                    <td>@Html.Raw(info.Rem)</td>
                    <td>@info.CreateTime.ToString("yyyy-MM-dd HH:mm:ss")</td>
                </tr>
            }
        }

    </tbody>
</table>


